#!/bin/bash

./intensity-tubber 2>audio.raw | mplayer - -demuxer rawvideo -rawvideo w=1280:h=720:format=uyvy:fps=59.94


#./intensity-tubber 2> /tmp/audio | mplayer - -demuxer rawvideo -rawvideo w=1280:h=720:format=uyvy:fps=59.94 


sox -t raw -b 16 -e signed-integer -r 48000 --endian little -c2 audio.raw audio.wav

rm audio.raw

exit 0
